<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<html>
	<head>
		<title>ϵͳ</title>
		<%@ include file="/commons/meta.jsp"%>

	</head>

	<body>
		<table width="100%" height="100%" border="0" cellpadding="0"
			cellspacing="0">
			<tr>
				<td align="center" valign="top">
					<div id="position">
						当前位置：系统管理 - 后台账号查询管理
					</div>
					<form name="form1" method="post" action="">
						<font color="red">${msg}</font>
						<input type="hidden" name="flowClassId" value="${flowClassId}">
						<input type="hidden" name="workOrderId" value="${workOrderId}">
						<table width="95%" border="0" cellspacing="2" cellpadding="2">
							<tr>
								<td>
									操作：
									<input type="button" name="Submit22" value="添加子流程"
										onClick="javascript:add()">
									<input type="button" name="Submit22" value="返回"
										onClick="javascript:doReturn()">
								</td>
							</tr>
						</table>

						<table width="95%" cellpadding="2" cellspacing="1"
							bgcolor="#CEEFFF">
							<tr>
								<td class="listtitle">
									子流程名称&nbsp;
								</td>
								<td class="listtitle">
									最后操作人&nbsp;
								</td>
								<td class="listtitle">
									最后操作时间&nbsp;
								</td>
								<td class="listtitle">
									是否允许修改&nbsp;
								</td>
								<td class="listtitle" width="15%">
									&nbsp;
								</td>
							</tr>
							<s:iterator value="workOrderSteps">
								<tr>
									<td bgcolor="#FFFFFF">
										${flow.name}&nbsp;
									</td>
									<td bgcolor="#FFFFFF">
										${username}&nbsp;
									</td>
									<td bgcolor="#FFFFFF">
										${time}&nbsp;
									</td>
									<td bgcolor="#FFFFFF">
										<s:if test="isModify == MODIFY_YES">允许修改</s:if>
										<s:if test="isModify == MODIFY_NO">不允许修改</s:if>
										&nbsp;
									</td>
									<td bgcolor="#FFFFFF" width="15%">
										<a
											href="${ctx}/workorder/workOrderStep!view.action?flowId=${flow.id}&workOrderId=${workOrderId}&flowClassId=${flowClassId}&id=${id}">预览</a>&nbsp;
										<a
											href="${ctx}/workorder/workOrderStep!update.action?flowId=${flow.id}&workOrderId=${workOrderId}&flowClassId=${flowClassId}&id=${id}&workOrderStepId=${id}">修改</a>&nbsp;
									</td>
								</tr>
							</s:iterator>
						</table>
					</form>
				</td>
			</tr>
		</table>
	</body>
</html>
<script language="javascript" type="text/javascript">
            function add()
            {
            	${'form1'}.action = "${ctx}/workorder/workOrderStep!flow.action";
               	${'form1'}.submit();
            }
            function doReturn()
            {
            	document.location="${ctx}/workorder/workOrder.action";
            }
</script>
